Skip to content

docs: add component accessibility specs and an assistive technology matrix - #2

Merged
maxcwolf merged 3 commits into
mainfrom
claude/loving-borg-2b3a12
Nov 8, 2026
Merged

maxcwolf merged 3 commits into
mainfrom
claude/loving-borg-2b3a12

Conversation

@maxcwolf

@maxcwolf maxcwolf commented Nov 8, 2026

Copy link
Copy Markdown
Owner

What and why

Adds what mature libraries (GOV.UK Frontend, React Aria) have on top of automation: a written
accessibility spec for every component and a record of manual assistive technology (AT) testing,
plus guards that keep both current.

  • Per-component specs: packages/ui/src/components/<Name>/accessibility.md for Button, Card,
    Icon, Spinner, Stack and TextInput. Each one covers role, name and states (web output next to
    the React Native props), a keyboard table, focus, expected VoiceOver / TalkBack / NVDA
    announcements and known issues. Each is based on the matching APG pattern, or says there is
    none. Gaps are listed as known issues; no component code changed.
  • AT matrix: docs/assistive-technology-testing.md defines the supported matrix (VoiceOver +
    Safari on macOS, VoiceOver on iOS, TalkBack + Chrome on Android, NVDA + Chrome or Firefox on
    Windows, keyboard only), says when a manual pass is required (a new component, or a change to
    a role, state, keyboard handling or announcement), and has a results table per component. Every
    row starts as "Not yet tested".
  • Guards: component-structure.test.ts now requires accessibility.md with every section,
    and a ### <Name> results section in the matrix doc. yarn new:component writes a spec stub,
    and its test checks the stub. There is a new PR template checkbox for the manual AT pass, and
    links from docs/accessibility.md, AGENTS.md ("Where new code goes") and engineering-standards
    1.3.

Relation to #1

The screen reader transcripts are only on #1, which is still open. The specs
describe main's code and cite those transcripts as "added by #1". Three known issues are marked
"(main only)" because #1 fixes them: Button's aria-busy="false", and TextInput's missing
aria-describedby and aria-invalid on the web. Whichever PR merges second should drop those
entries and update the TextInput role table.

The specs ship in the npm package because files includes src. They are docs only, so there is
no changeset.

Checklist

  • yarn check passes.
  • Accessibility: no UI change.
  • Theming: no change.
  • Public API: unchanged.
  • Screenshots: unchanged.
  • Dependencies: none added.
  • Guards: component-structure.test.ts (CODEOWNERS) is strengthened, not loosened.

…atrix

Each component gets an accessibility.md beside it: role, name and states for the web and
native, keyboard, focus, expected announcements and known issues, based on the matching APG
pattern. docs/assistive-technology-testing.md defines the supported matrix, when a manual pass
is required, and a results table per component, all not yet tested. The pull request template,
docs/accessibility.md, AGENTS.md and engineering-standards 1.3 link to both.
…onent

The component structure contract fails when a component folder has no accessibility.md with
every section, or docs/assistive-technology-testing.md has no results section for it.
yarn new:component writes the spec stub.
# Conflicts:
#	docs/accessibility.md
@maxcwolf
maxcwolf merged commit d3117b0 into main Nov 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant